import request from "@/common/http/axios"

//测试列表
export const getSlList = data => {
	return request({
		url: '/shenlun-test/list',
		method: 'post',
		data
	});
};
// 获取教师列表
export const getTeacherList = () => {
	return request({
		url: '/base-sys-user/list',
		method: 'get'
	});
};
//分配教师
export const assignTeacher = data => {
	return request({
		url: '/shenlun-test/assignTeacher',
		method: 'post',
		data
	});
};
// 获取申论批改分数
export const getSlScore = testId => {
	return request({
		url: `/shenlun-test/score/${testId}`,
		method: 'get'
	});
};
// 添加申论答案
export const addShenlunAnswer = data => {
	return request({
		url: '/shenlun-answer/add',
		method: 'post',
		data
	});
};


// 批改完成
export const correctTest = testId => {
	return request({
		url: `/shenlun-test/correct/${testId}`,
		method: 'get'
	});
};

